package controllers

import play.api.mvc._
import models._


/**
 * Created by bobr on 11/15/14.
 */


object geomGenerator extends Controller {

  def kml(file: String) = Action {
    file match {
      case "boundary" => Ok(views.xml.boundary(Boundary.getKml, file))
      case "spna" => Ok(views.xml.protectedareas(ProtectedAreas.getKml, file))
      case "redbook" => Ok(views.xml.redbook(RedBook.getKml, file))
      case "map" => Ok(views.html.gmap())
      case _ => NotFound
    }
  }
}
